<include file="public:top" />
<!--网站设置-->
<body class="body">
<fieldset class="layui-elem-field layui-field-title" style="margin-top:0px;">
    <legend>{$menuid|getmenuname}</legend>
</fieldset>
 <blockquote class="layui-elem-quote">文档上传后，是默认审核通过，还是需要人工审核！</blockquote>
<form class="layui-form layui-form-pane" action="">
    <input type="hidden" name="menuid"  value="{$menuid}"/>
    <div class="layui-form-item" pane="">
        <label class="layui-form-label">文档审核</label>
        <div class="layui-input-block">
           <input type="radio" title="是" <if condition="C('wkcms_web_switch.doc_con') eq '1'">checked="checked"</if> value="1" name="setting[web_switch][doc_con]">
           <input type="radio" title="否" <if condition="C('wkcms_web_switch.doc_con') eq '2'">checked="checked"</if> value="2" name="setting[web_switch][doc_con]">

        </div>
    </div>
   
<!-- 
    <div class="layui-form-item" pane="">
        <label class="layui-form-label">开启评论</label>
        <div class="layui-input-block">
       <input type="radio" title="是" <if condition="C('wkcms_web_switch.comment') eq '1'">checked="checked"</if> value="1" name="setting[web_switch][comment]">
       <input type="radio" title="否" <if condition="C('wkcms_web_switch.comment') eq '0'">checked="checked"</if> value="0" name="setting[web_switch][comment]">
        </div>
    </div>
     -->
   
   <!--  <div class="layui-form-item" pane="">
        <label class="layui-form-label">开启黑名单</label>
        <div class="layui-input-block">
       <input type="radio" title="是" <if condition="C('wkcms_web_switch.ipban') eq '1'">checked="checked"</if> value="1" name="setting[web_switch][ipban]">
       <input type="radio" title="否" <if condition="C('wkcms_web_switch.ipban') eq '0'">checked="checked"</if> value="0" name="setting[web_switch][ipban]">
        </div>
    </div> -->

    <div class="layui-form-item">
        <label class=""></label>
        <div class="layui-input-block">
        <button class="layui-btn" lay-submit="" lay-filter="upbtn">提交保存</button>
        </div>
    </div>
</form>

<script type="text/javascript" src="__PUBLIC__/admin/layui/layui.js"></script>
<script>
//Demo
layui.use(['layer','jquery','form'], function () {
   // 操作对象
    var layer = layui.layer,$ = layui.jquery,form = layui.form;
  
  // 提交
    form.on('submit(upbtn)', function (data) {
        // 提交到方法 默认为本身
        $.post("{:u('global/edit')}",data.field,function(res){
            if(res.status.status ==  1){
                layer.msg(res.status.info,{time:1800},function(){
                  location.href = "{:u('global/index')}&menuid={$menuid}&type=switch";
                });
            }else{
                layer.msg(res.status.info,{time:1800});
                // $('.verify_img').click();
            }
        });
        return false;
    });
});
</script>
</body>
</html>